<?
require_once('upmklog.php');
require_once('hyang.class.php');
require_once('hyang.function.php');
if(isMobile())
{
	echo '<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">';
	echo '<html xmlns="http://www.w3.org/1999/xhtml">';
	echo '<meta name="viewport" content="width=device-width">';
	echo '<title>Mobile File System</title>';
	//echo '<link rel="stylesheet" type="text/css" href="mobile.css"/>';
}
else
{
	echo'<!DOCTYPE html><html><head>';
	//echo'<style>html{margin:2% 25% 2% 25%;} div{background:beige;padding:50px;overflow:scroll;height:450px;}</style>';
	echo '<title>PC Images Internet</title>';
}
?>
<style>
html{background:#ccffcc;}
#show{margin:0;width:100%;height:80%;padding:0 15% 0 15%;text-align:center;}
#show img{}
#all{margin:0;width:100%;height:119px;overflow-x:scroll}
#all img{width:210px;height:119px;}
a{text-decoration:none;}
</style>
<script>
window.onload=function()//
{
	document.getElementById("show").innerHTML = '<img src="./images/face.png">';
}
function img(href)
{
	//var div = document.getElementById("show");
	document.getElementById("show").innerHTML = '<a href="'+href+'" target="_blank"><img src="'+href+'"></a>';
	//alert(href);
}
</script>
</head>
<body>
<a href="/_joshua/sysfile">I WANT COME BACK</a>
<div id="show">
</div>
<div id="all">
<?php
$dir = "./images";
print_dir_img($dir);
?>
</div>
</body>
</html>
